﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Cricket.LinqModel
{
    public partial class CustomerBetting
    {
        private IDataRepository _dataObject;
        public CustomerBetting(IDataRepository dataObject)
            : this()
        {
            _dataObject = dataObject;
        }
        public List<GetSessionBettingForClientResult> GetSessionBettingForClient(int adminId, int matchId, int bettingType)
        {
            return _dataObject.GetSessionBettingForClient(adminId, matchId, bettingType);
        }
        public void CreateCustomerBetting(List<CustomerBetting> cBettings)
        {
            _dataObject.CreateCustomerBetting(cBettings);
        }
        public List<UpdateTeamARecordsResult> UpdateTeamARecords(int MatchId, int TeamId)
        {
            return _dataObject.UpdateTeamARecords(MatchId, TeamId);
        }
        public List<UpdateTeamBRecordsResult> UpdateTeamBRecords(int MatchId, int TeamId)
        {
            return _dataObject.UpdateTeamBRecords(MatchId, TeamId);
        }
        public void UpdateTeamA(int MatchId)
        {
            _dataObject.UpdateTeamA(MatchId);
        }
        public void UpdateTeamB(int MatchId)
        {
            _dataObject.UpdateTeamB(MatchId);
        }
        public void UpdateDraw(int MatchId)
        {
            _dataObject.UpdateDraw(MatchId);
        }
        public void UpdateTie(int MatchId)
        {
            _dataObject.UpdateTie(MatchId);
        }
        public List<ClientMatchLedgerResult> ClientMatchLedger(int AdminId, int MatchId, int ClientId)
        {
            return _dataObject.ClientMatchLedger(AdminId, MatchId, ClientId);
        }
        public List<ClientSessionLedgerResult> ClientSessionLedger(int AdminId, int MatchId, int ClientId)
        {
            return _dataObject.ClientSessionLedger(AdminId, MatchId, ClientId);
        }
        public List<ClientCommissionLedgerResult> ClientCommissionLedger(int MatchId, int ClientId)
        {
            return _dataObject.ClientCommissionLedger(MatchId, ClientId);
        }

        public List<AdminMatchLedgerResult> AdminMatchLedger(int AdminId, int MatchId)
        {
            return _dataObject.AdminMatchLedger(AdminId, MatchId);
        }
        public List<AdminSessionLedgerResult> AdminSessionLedger(int AdminId, int MatchId)
        {
            return _dataObject.AdminSessionLedger(AdminId, MatchId);
        }
        public List<AdminCommissionLedgerResult> AdminCommissionLedger(int AdminId, int MatchId)
        {
            return _dataObject.AdminCommissionLedger(AdminId,MatchId);
        }
        public List<IsDuplicateRecordResult> IsDuplicateRecord(int MatchScheduleId, int BettingId, string BetFor, int CreatedBy, string BettingAmount)
        {
            return _dataObject.IsDuplicateRecord(MatchScheduleId, BettingId, BetFor, CreatedBy,BettingAmount).ToList();

        }
    }
}
